Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[App Search] Add accordion lists for Domains, Seed URLs, and Sitemap URLs to Crawl Details Flyout #119682

Merged
merged 17 commits into from
Dec 1, 2021

Conversation

byronhulcher
Copy link
Contributor

@byronhulcher byronhulcher commented Nov 24, 2021

Summary

  • Adds a new AccordionList component
  • Adds the Domains, Seed URLs, and Sitemap URLs lists (implemented using AccordionList to the existing CrawlDetailsFlyout component)

Screenshots

holler- Safari-2021-12-01 at 09 59

Checklist

@byronhulcher byronhulcher added Feature:Plugins v8.0.0 release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v8.1.0 labels Nov 24, 2021
@byronhulcher byronhulcher self-assigned this Nov 24, 2021
@byronhulcher byronhulcher requested a review from a team November 24, 2021 23:44
@daveyholler
Copy link
Contributor

Can we set a max width on that fly out? I'm on my phone right now, but I believe that the medium size is appropriate.

@orhantoy
Copy link
Contributor

@elasticmachine merge upstream

@byronhulcher byronhulcher requested a review from a team as a code owner November 30, 2021 23:09
Comment on lines 27 to 28
hasBorder?: boolean;
initialIsOpen?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • hasBorder allows the accordion to be rendered with or without a border and padding. I've got some designs in the works that will use be making use of this component in both scenarios.
  • initialIsOpen allows the accordion to be expanded. In this case specifically, we set the prop to true when items exist in the list.

Comment on lines 60 to 68
pagination={{
pagination={ items.length > 10 ? {
hidePerPageOptions: true,
}}
} : false}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm hiding pagination when there's only one page of items.

Copy link
Contributor

@orhantoy orhantoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me it looks like we have a lot of borders:

Screen Shot 2021-12-01 at 06 55 13

We could either increase the whitespace between the sections or it might help to remove the bottom border on the tables.

Also, it says "No items found" which reads a bit weird. But it looks like EuiInMemoryTable has that built-in somehow, so I'm not sure if we have control over that message.

@daveyholler
Copy link
Contributor

To me it looks like we have a lot of borders...

I agree. I'll explore some possible CSS options. In my designs I actually removed the bottom border on the table which helps.

holler- Figma-2021-12-01 at 08 54

@daveyholler daveyholler requested a review from orhantoy December 1, 2021 17:28
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 1328 1334 +6

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 1.3MB 1.3MB +2.9KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @daveyholler @byronhulcher

@daveyholler daveyholler merged commit 096fb43 into elastic:main Dec 1, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Dec 1, 2021
…URLs to Crawl Details Flyout (elastic#119682)

* New AccordionList component

* Add a domains accordion list to the CrawlDetailsPreview

* Add seedUrls to CrawlConfig

* Add a seed urls accordion list to the CrawlDetailsPreview

* Add sitemapUrls to CrawlConfig

* Add a sitemap urls accordion list to the CrawlDetailsPreview

* Disable arrow in AccordionList when items are empty

* Add spacers to CrawlDetailsPreview

* Type fix

* Sets a maxWidth on the flyout.

* Allows the raw JSON to be copied.

* Visual updates to the accordions.

* Linting

* Review and linting fixes.

* Styles the tables in the accordion list.

* Uses a subdued color for count badges when the count is zero.

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Davey Holler <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Dec 1, 2021
…URLs to Crawl Details Flyout (#119682) (#120160)

* New AccordionList component

* Add a domains accordion list to the CrawlDetailsPreview

* Add seedUrls to CrawlConfig

* Add a seed urls accordion list to the CrawlDetailsPreview

* Add sitemapUrls to CrawlConfig

* Add a sitemap urls accordion list to the CrawlDetailsPreview

* Disable arrow in AccordionList when items are empty

* Add spacers to CrawlDetailsPreview

* Type fix

* Sets a maxWidth on the flyout.

* Allows the raw JSON to be copied.

* Visual updates to the accordions.

* Linting

* Review and linting fixes.

* Styles the tables in the accordion list.

* Uses a subdued color for count badges when the count is zero.

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Davey Holler <[email protected]>

Co-authored-by: Byron Hulcher <[email protected]>
Co-authored-by: Davey Holler <[email protected]>
TinLe pushed a commit to TinLe/kibana that referenced this pull request Dec 22, 2021
…URLs to Crawl Details Flyout (elastic#119682)

* New AccordionList component

* Add a domains accordion list to the CrawlDetailsPreview

* Add seedUrls to CrawlConfig

* Add a seed urls accordion list to the CrawlDetailsPreview

* Add sitemapUrls to CrawlConfig

* Add a sitemap urls accordion list to the CrawlDetailsPreview

* Disable arrow in AccordionList when items are empty

* Add spacers to CrawlDetailsPreview

* Type fix

* Sets a maxWidth on the flyout.

* Allows the raw JSON to be copied.

* Visual updates to the accordions.

* Linting

* Review and linting fixes.

* Styles the tables in the accordion list.

* Uses a subdued color for count badges when the count is zero.

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Davey Holler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants